import { Loading } from "element-ui";
let loading;
const showLoading = () => {
  loading = Loading.service({
    fullscreen: true,
    background: "rgba(255, 255, 255, 0.8)", //遮罩层背景色
  });
};
const hideLoading = () => {
  if (loading) {
    loading.close();
  }
};
export default {
  showLoading,
  hideLoading,
};
